import React, { memo } from 'react';
import { Popover, Button } from 'antd';

import styles from './style.less';

const CustomPopover = memo(({ placement = 'right', content, title = undefined, trigger = 'hover' }) => (
    <Popover content={content} title={title} trigger={trigger} placement={placement}>
        <Button type="link" className={styles.popoverIcon}>
            <i className="icon iconfont iconjinggao"></i>
        </Button>
    </Popover>
    ))

export default CustomPopover
